<div class="content_filtro">
    <div class="filtro">
        <form id="form_filtro" method="post" action="">            
            <i>Pesquisar</i>
            <label><?php echo elemform::radio('stafiltro','stafiltro','1,2',$this->stafiltro); ?> Ativo</label>
            <label><?php echo elemform::radio('stafiltro','stafiltro','0',$this->stafiltro); ?> Inativo</label>
            
            <input type="submit" value="buscar" name="buscar" class="btn-pdr">
            
        </form>
    </div>
</div>

<div class="content-list">
    
    <h2><?php echo $this->titulo;?></h2>
    
    <table id="tlist">
        <thead>
            <tr>
                <th>Data Cartão</th>
                <th>Cartão</th>
                <th>Data Resultado</th>
                <th>Resultado</th>
                <th class="bc">&nbsp;</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($this->result as $row) { 
                $btn_nom = $row['PLS_STAALU'] == 0 ? 'Publicar':'Publicação';
            ?>
                <tr>
                    <td><?php echo Datetools::amd_dma($row['PLS_DAT']); ?></td>
                    <td><?php echo $row['PLS_NOM']; ?></td>
                    <td><?php echo Datetools::amd_dma($row['PLS_DATRES']); ?></td>
                    <td><?php echo dominio::getStaPublicarSimuladoAluno($row['PLS_STAALU']); ?></td>
                    <td class="bc">
                        <?php if($this->per_edt){?><a class="btn-pdr" href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'edit', 'id' => $row['PLS_ID'])); ?>"><?php echo $btn_nom; ?></a><?php }?>
                    </td> 
                </tr>
            <?php } ?>
        </tbody>
    </table>
</div>
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); ?>